package front_router

import (
	"github.com/gin-gonic/gin"
)

type routerGroup struct {
	*gin.RouterGroup
}

func InitRouter(baseGroup *gin.RouterGroup) {
	frontGroup := baseGroup.Group("/front")

	messageGroup := frontGroup.Group("/message")
	routerGroup{messageGroup}.MessageRouter()

	articleGroup := frontGroup.Group("/article")
	routerGroup{articleGroup}.ArticleRouter()

	commentGroup := frontGroup.Group("/comment")
	routerGroup{commentGroup}.CommentRouter()

	newsGroup := frontGroup.Group("/news")
	routerGroup{newsGroup}.NewsRouter()

	chatGroup := frontGroup.Group("/chat")
	routerGroup{chatGroup}.ChatRouter()

}
